package com.tudouji.common.enums;

public enum WlinfoStatusEnum {

    UNDELIVER(5, "待发货"), DELIVERED(15, "待结算"),SETTLE(30,"已结算");

    private Integer code;
    private String name;

    WlinfoStatusEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getName(Integer code) {
        for (WlinfoStatusEnum adStatus : WlinfoStatusEnum.values()) {
            if (adStatus.code == code) {
                return adStatus.name;
            }
        }
        return "未知物流状态";
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
